package com.company;

/**
 * @description:
 * @author: 10445
 * @date: Created in 2020/5/13 21:08
 * @version: v1.0
 * @modified By:
 */
public class Person {
    private  int p_Age;
    private  String p_Sex;
    private String id;
    private  String p_name;

    public Person() {
    }

    public Person(String id) {
        this.id = id;
    }

    public void driveTransport(AirTransport airTransport){
        System.out.println("driving " +airTransport.getId() );
    }
    public void driveTransport(LandTransport landTransport){
        System.out.println("driving " +landTransport.getId() );
    }
    public void driveTransport(MaritimeMeansOfTransport maritimeMeansOfTransport){
        System.out.println("driving " +maritimeMeansOfTransport.getId() );
    }

    public int getP_Age() {
        return p_Age;
    }

    public void setP_Age(int p_Age) {
        this.p_Age = p_Age;
    }

    public String getP_Sex() {
        return p_Sex;
    }

    public void setP_Sex(String p_Sex) {
        this.p_Sex = p_Sex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }
}
